package com.xtkj.stcrm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PathController {
	
	//  /page/employeelist

	@RequestMapping("/page/{url}")
	public String toPage(@PathVariable("url") String path) {
		//redirect:/employeelit  ===>  localhost:8080/ssm01/employeelist.jsp
		return "/"+path;
	}
}
